package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 设施实体类
 */
@TableName("t_faclity")
public class FacilityBean {
    /**设施编号*/
    @TableId(value = "pk_facId",type = IdType.AUTO)
    private Integer facId;
    /**设施状态*/
    @TableField("f_status")
    private String facStatus ="未解决";
    /**设施损坏描述*/
    @TableField("f_describe")
    private String facDescribe;
    /**损坏日期*/
    @TableField("f_date")
    private LocalDate facDate=LocalDate.now();
    /**所在房间对象*/
    @TableField("fk_roomId")
    private Integer roomId;
    @TableField(exist = false)
    private RoomBean facRoom;

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public FacilityBean() {
    }

    public Integer getFacId() {
        return facId;
    }

    public void setFacId(Integer facId) {
        this.facId = facId;
    }

    public String getFacStatus() {
        return facStatus;
    }

    public void setFacStatus(String facStatus) {
        this.facStatus = facStatus;
    }

    public String getFacDescribe() {
        return facDescribe;
    }

    public void setFacDescribe(String facDescribe) {
        this.facDescribe = facDescribe;
    }

    public LocalDate getFacDate() {
        return facDate;
    }

    public void setFacDate(LocalDate facDate) {
        this.facDate = facDate;
    }

    public RoomBean getFacRoom() {
        return facRoom;
    }

    public void setFacRoom(RoomBean facRoom) {
        this.facRoom = facRoom;
    }

    @Override
    public String toString() {
        return "FacilityBean{" +
                "facId=" + facId +
                ", facStatus='" + facStatus + '\'' +
                ", facDescribe='" + facDescribe + '\'' +
                ", facDate=" + facDate +
                ", roomId=" + roomId +
                ", facRoom=" + facRoom +
                '}';
    }
}
